import Vue from "vue";
let guartancePerson = Vue.filter("guartancePerson", function(val) {
	let arrs = [{
			name: '本人',
			relationType: 0,
		},
		{
			name: '爱人',
			relationType: 1,
		},
		{
			name: '本人父亲',
			relationType: 3
		},
		{
			name: '本人母亲',
			relationType: 4
		},
		{
			name: '爱人父亲',
			relationType: 5
		},
		{
			name: '爱人母亲',
			relationType: 6
		},
		{
			name: '子女(1个)',
			relationType: 21
		}, {
			name: '子女(2个)',
			relationType: 22,
		},
		{
			name: '子女(3个)',
			relationType: 23
		}, {
			name: '子女(4个)',
			relationType: 24,
		}
	]
   

	arrs.forEach(function(item, index, nums) {
		if (item.relationType == val) {
			val = item.name
		}
		
	});
	return val
});

export default guartancePerson;
